package cn.ssj.service.impl;

import cn.ssj.dao.MessageDao;
import cn.ssj.entity.Message;
import cn.ssj.service.MessageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.transaction.Transactional;

/**
 * Created by Administrator on 2017-09-10.
 */
@Service
public class MessageServiceImpl extends BaseServiceImpl<Message,Integer> implements MessageService{

    @Autowired
    private MessageDao dao;

    @Transactional
    public Message insert(Message entity) {
        return super.insert(entity);
    }

    @Transactional
    public Message update(Message entity) {
        return super.update(entity);
    }

    @Transactional
    public boolean delete(Integer integer) {
        return super.delete(integer);
    }
}
